# 定义一个集合变量
fruits = {"apple", "banana", "cherry"}

# 打印变量的值
print("Fruits:", fruits)

# 添加元素到集合中
fruits.add("orange")
print("Updated Fruits:", fruits)

# 删除集合中的元素
fruits.remove("banana")
print("Fruits after removing 'banana':", fruits)

# 检查集合是否包含某个元素
if "apple" in fruits:
    print("The set contains 'apple'.")
else:
    print("The set does not contain 'apple'.")

# 求两个集合的交集
other_fruits = {"banana", "kiwi", "mango"}
common_fruits = fruits.intersection(other_fruits)
print("Common fruits:", common_fruits)
